package so.sia.action.sample;

import java.util.List;

import so.sia.model_sample.WriteDTO;
import so.sia.util.DAOFactory;

import com.opensymphony.xwork2.ActionSupport;

public class ListAction extends ActionSupport{
	private List<WriteDTO> list;

	public List<WriteDTO> getList() {
		return list;
	}

	@Override
	public String execute() throws Exception {
		list = DAOFactory.createDAO().getList();
		return SUCCESS;
	}
	
}
